<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        a {
            color: #000;
            text-decoration: none;
        }
        
        body,
         :root {
            width: 100%;
            height: 100%;
        }
        
        .container {
            display: flex;
            width: 100%;
            height: 100%;
            padding: 20px;
            border: 1px solid;
        }
        
        .left-cont {
            flex: 1;
            height: 100%;
            display: flex;
            flex-direction: column;
        }
        
        .left-cont>.list {
            display: flex;
            flex-direction: column;
            text-align: center;
        }
        
        .left-cont>.list>span {
            border: 1px solid rgb(28, 104, 96);
            height: 40px;
            background-color: rgb(239, 253, 252);
            line-height: 40px;
            transition: all .3s;
        }
        
        .left-cont>.list>.item:hover {
            transform: scale(1.1);
        }
        
        .left-cont>.list>.item {
            margin-left: 20px;
        }
        
        .left-cont>.list>.item-title {
            height: 50px;
            line-height: 50px;
            position: relative;
            background-color: rgb(28, 104, 96);
            color: #fff;
            font-weight: bold;
        }
        /* .left-cont>.list>.item-title:first-of-type {
                border-top: 5px solid;
            } */
        
        .left-cont>.list>.item-title::before {
            content: '';
            display: inline-block;
            border: 10px solid rgb(20, 59, 57);
            border-left-color: transparent;
            border-bottom-color: transparent;
            position: absolute;
            left: 0px;
            bottom: -20px;
        }
        
        .right-cont {
            flex: 4;
            display: flex;
            flex-direction: column;
            width: 100%;
            margin-left: 20px;
        }
        
        .right-cont>thead {
            width: 100%;
            display: flex;
        }
        
        .right-cont>.right-title {
            width: 100%;
            border-bottom: 3px solid rgb(20, 59, 57);
            margin-bottom: 30px;
        }
        
        .right-cont>.right-title>span {
            background-color: rgb(0, 155, 134);
            display: inline-block;
            width: 100px;
            height: 30px;
            text-align: center;
            line-height: 30px;
            font-weight: bold;
            color: #fff;
        }
        
        .right-cont>table {
            border: 1px solid rgb(28, 104, 96);
            text-align: center;
        }
        
        .right-cont>table>* {
            margin: 5px;
        }
        
        .thead {
            height: 50px;
            background-color: rgb(35, 129, 120);
            color: #fff;
        }
        
        .tbtr {
            height: 50px;
        }
        
        .tbtd:hover {
            transition: all .3s;
            transform: scale(1.1);
        }
        
        .tbtr:nth-of-type(n) {
            background-color: rgb(239, 253, 252);
        }
        
        .tbtr:nth-of-type(2n) {
            background-color: #fff;
        }
    </style>
</head>

<body>
    <div class="container">
        <div class="left-cont">
            <div class="list">
                <span class="item-title">院系专业</span>
                <span class="item">专业列表</span>
                <span class="item">添加专业</span>
            </div>
            <div class="list">
                <span class="item-title">学生管理</span>
                <span class="item"><a href="__MODULE__/Student/studentInfo">学生列表</a></span>
                <span class="item">添加学生</span>
            </div>
            <div class="list">
                <span class="item-title">系统设置</span>
                <span class="item">修改密码</span>
            </div>
            <div class="list">
                <span class="item-title">教学系统</span>
                <span class="item"></span>
                <span class="item"></span>

            </div>
        </div>
        <div class="right-cont">
            <div class="right-title">
                <span>专业列表</span>
            </div>
            <table>

                <thead class="thead">
                    <th>专业</th>
                    <th>班级</th>
                    <th>操作</th>
                </thead>
                <notempty name="major_info">
                    <tbody>
                        <foreach name="major_info" item="v">
                            <foreach name="v.Class" item="vv" key="k">
                                <tr class="tbtr">
                                    <if condition="($k eq 0)">
                                        <td rowspan="{$v.Class|count}">{$v.major_name}</td>
                                    </if>
                                    <td class="tbtd">{$vv.class_name}</td>
                                    <td>删除 编辑</td>
                                </tr>
                            </foreach>
                        </foreach>
                        <else/>
                        <tr>
                            <td>查询结果不存在</td>
                        </tr>
                    </tbody>
                </notempty>
            </table>
        </div>
    </div>
</body>




</html>